import greetings.GreetingService;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;


public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		BeanFactory factory = new XmlBeanFactory(new FileSystemResource("spring-config.xml"));
		
		GreetingService greeting = (GreetingService) factory.getBean("majaGreet");
		greeting.sayGreeting();
	}

}
